//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_purchase_application.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: { Voucher_sub: '', Proposer: '', WHSE_no: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '申请人', field: 'Proposer', type: 'like' },
			{ type: 'group' },
			{ key: '一级仓库', data: [], title: '采购机构', field: 'WHSE_no', type: 'select' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Proposer', title: '申请人', type: 'string' },
			{ field: 'WHSE_no', title: '采购机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{field:  'Image',title:'图片',type: 'img'},
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' }
		],
		table: {
			key: 'Purchase_application',
			footer: 'Foots',
			cnName: '采购申请单',
			name: 'q_purchase_application',
			url: '/q_purchase_application/',
			sortName: 'CreateDate'
		}
	};
}
